package com.supermap.data.modal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 菜单信息
 * TUser entity. @sun'f
 */
@Entity
@Table(name = "T_MENU")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class TMenu {

    /**
     * 主键
     */
    private String id;
    /**
     * 所属角色
     */
    private String role_id;
    /**
     * 菜单名称
     */
    private String menu_name;
    /**
     * 菜单代码
     */
    private String menu_code;


    public TMenu() {
    }

    public TMenu(String id, String role_id, String menu_name, String menu_code) {
        this.id = id;
        this.role_id = role_id;
        this.menu_name = menu_name;
        this.menu_code = menu_code;
    }

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "ROLE_ID")
    public String getRole_id() {
        return role_id;
    }

    public void setRole_id(String role_id) {
        this.role_id = role_id;
    }

    @Column(name = "MENU_NAME")
    public String getMenu_name() {
        return menu_name;
    }

    public void setMenu_name(String menu_name) {
        this.menu_name = menu_name;
    }

    @Column(name = "MENU_CODE")
    public String getMenu_code() {
        return menu_code;
    }

    public void setMenu_code(String menu_code) {
        this.menu_code = menu_code;
    }
}
